package com.example.demo.vo.user;

import com.example.demo.po.user.User;
import lombok.Data;
import org.springframework.lang.NonNull;

@Data
public class UserRoleVO {
    private int uid;
    private int role;
    private String token;
    //private UserRole userRole;

    public UserRoleVO() {
    }

    public void setToken(String token) {
        this.token = token;
    }

    public UserRoleVO(@NonNull User user) {
        this.uid=user.getUid();
        this.role=user.getRole();
    }
}